package day03;

public class MathDemo {
    public static void main(String[] args){
        System.out.println(Math.abs(-10));

        System.out.println(Math.max(5,10));

        System.out.println(Math.pow(2,3));

        System.out.println(Math.sqrt(9));

        System.out.println(Math.random());

        int result = (int)(Math.random()*100+1);
        System.out.println(result);

        int n = (int)(Math.random()*3 + 3);
        System.out.println(n);

        System.out.println(Math.floor(3.5));
        System.out.println(Math.floor(-3.5));
        System.out.println(Math.floor(4.0));

        System.out.println(Math.round(3.5));
    }
}
